[INFO] fetching crate filetype 0.2.0...
[INFO] checking filetype-0.2.0 against master#af3c6e733a40e671550e0f0f5aeecaa13772ba56 for pr-74989
[INFO] extracting crate filetype 0.2.0 into /workspace/builds/worker-12/source
[INFO] validating manifest of crates.io crate filetype 0.2.0 on toolchain af3c6e733a40e671550e0f0f5aeecaa13772ba56
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking crates.io crate filetype 0.2.0
[INFO] finished tweaking crates.io crate filetype 0.2.0
[INFO] tweaked toml for crates.io crate filetype 0.2.0 written to /workspace/builds/worker-12/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d48bab89a1d67004d1f7f3452784f9ea9894cfaa229fa4974afd848bb0c24625
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "d48bab89a1d67004d1f7f3452784f9ea9894cfaa229fa4974afd848bb0c24625", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d48bab89a1d67004d1f7f3452784f9ea9894cfaa229fa4974afd848bb0c24625", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d48bab89a1d67004d1f7f3452784f9ea9894cfaa229fa4974afd848bb0c24625", kill_on_drop: false }`
[INFO] [stdout] d48bab89a1d67004d1f7f3452784f9ea9894cfaa229fa4974afd848bb0c24625
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+af3c6e733a40e671550e0f0f5aeecaa13772ba56" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 4368dfcdf102e868e5d03feebcd177cfbf0b55ef3c96d5cb926f332e9d88efef
[INFO] running `Command { std: "docker" "start" "-a" "4368dfcdf102e868e5d03feebcd177cfbf0b55ef3c96d5cb926f332e9d88efef", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling nix v0.18.0
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]     Checking filetype v0.2.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc`
[INFO] [stdout]   --> src/lib.rs:44:11
[INFO] [stdout]    |
[INFO] [stdout] 44 | use libc::consts::os::posix88;
[INFO] [stdout]    |           ^^^^^^ could not find `consts` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:45:11
[INFO] [stdout]    |
[INFO] [stdout] 45 | use libc::types::os::arch::posix88::mode_t;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc`
[INFO] [stdout]  --> src/test/mod.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[cfg(test)] use libc::consts::os::posix88;
[INFO] [stdout]   |                        ^^^^^^ could not find `consts` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc`
[INFO] [stdout]   --> src/lib.rs:44:11
[INFO] [stdout]    |
[INFO] [stdout] 44 | use libc::consts::os::posix88;
[INFO] [stdout]    |           ^^^^^^ could not find `consts` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:45:11
[INFO] [stdout]    |
[INFO] [stdout] 45 | use libc::types::os::arch::posix88::mode_t;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:89:50
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let file_mask : mode_t = fstat.st_mode & posix88::S_IFMT;
[INFO] [stdout]    |                                                  ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         posix88::S_IFREG => Ok(FileType::Regular),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:97:9
[INFO] [stdout]    |
[INFO] [stdout] 97 |         posix88::S_IFDIR => Ok(FileType::Directory),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:98:9
[INFO] [stdout]    |
[INFO] [stdout] 98 |         posix88::S_IFLNK => Ok(FileType::Symlink),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 99 |         posix88::S_IFIFO => Ok(FileType::NamedPipe),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]    --> src/lib.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |         posix88::S_IFBLK => Ok(FileType::BlockDevice),
[INFO] [stdout]     |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]    --> src/lib.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout] 101 |         posix88::S_IFCHR => Ok(FileType::CharacterDevice),
[INFO] [stdout]     |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/test/mod.rs:56:38
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let file_flag = SFlag::from_bits(posix88::S_IFIFO).unwrap();
[INFO] [stdout]    |                                      ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `mode_t` in this scope
[INFO] [stdout]   --> src/lib.rs:75:21
[INFO] [stdout]    |
[INFO] [stdout] 75 |     UnknownFileType(mode_t),
[INFO] [stdout]    |                     ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 39 | use libc::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 39 | use std::os::unix::raw::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `mode_t` in this scope
[INFO] [stdout]   --> src/lib.rs:89:25
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let file_mask : mode_t = fstat.st_mode & posix88::S_IFMT;
[INFO] [stdout]    |                         ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 39 | use libc::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 39 | use std::os::unix::raw::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `mode_t` in this scope
[INFO] [stdout]   --> src/lib.rs:94:30
[INFO] [stdout]    |
[INFO] [stdout] 94 | fn get_file_type(file_mask : mode_t) -> FileTypeResult {
[INFO] [stdout]    |                              ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 39 | use libc::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 39 | use std::os::unix::raw::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]   --> src/lib.rs:88:21
[INFO] [stdout]    |
[INFO] [stdout] 88 |         let fstat = try!(stat::fstat(fd));
[INFO] [stdout]    |                     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::sys::stat::fstat`
[INFO] [stdout]   --> src/lib.rs:43:5
[INFO] [stdout]    |
[INFO] [stdout] 43 | use nix::sys::stat::fstat;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:89:50
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let file_mask : mode_t = fstat.st_mode & posix88::S_IFMT;
[INFO] [stdout]    |                                                  ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:96:9
[INFO] [stdout]    |
[INFO] [stdout] 96 |         posix88::S_IFREG => Ok(FileType::Regular),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:97:9
[INFO] [stdout]    |
[INFO] [stdout] 97 |         posix88::S_IFDIR => Ok(FileType::Directory),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:98:9
[INFO] [stdout]    |
[INFO] [stdout] 98 |         posix88::S_IFLNK => Ok(FileType::Symlink),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]   --> src/lib.rs:99:9
[INFO] [stdout]    |
[INFO] [stdout] 99 |         posix88::S_IFIFO => Ok(FileType::NamedPipe),
[INFO] [stdout]    |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]    --> src/lib.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |         posix88::S_IFBLK => Ok(FileType::BlockDevice),
[INFO] [stdout]     |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `posix88`
[INFO] [stdout]    --> src/lib.rs:101:9
[INFO] [stdout]     |
[INFO] [stdout] 101 |         posix88::S_IFCHR => Ok(FileType::CharacterDevice),
[INFO] [stdout]     |         ^^^^^^^ use of undeclared type or module `posix88`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `mode_t` in this scope
[INFO] [stdout]   --> src/lib.rs:75:21
[INFO] [stdout]    |
[INFO] [stdout] 75 |     UnknownFileType(mode_t),
[INFO] [stdout]    |                     ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 39 | use libc::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 39 | use std::os::unix::raw::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `mode_t` in this scope
[INFO] [stdout]   --> src/lib.rs:89:25
[INFO] [stdout]    |
[INFO] [stdout] 89 |         let file_mask : mode_t = fstat.st_mode & posix88::S_IFMT;
[INFO] [stdout]    |                         ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 39 | use libc::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 39 | use std::os::unix::raw::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `mode_t` in this scope
[INFO] [stdout]   --> src/lib.rs:94:30
[INFO] [stdout]    |
[INFO] [stdout] 94 | fn get_file_type(file_mask : mode_t) -> FileTypeResult {
[INFO] [stdout]    |                              ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 39 | use libc::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 39 | use std::os::unix::raw::mode_t;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]   --> src/lib.rs:88:21
[INFO] [stdout]    |
[INFO] [stdout] 88 |         let fstat = try!(stat::fstat(fd));
[INFO] [stdout]    |                     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::sys::stat::fstat`
[INFO] [stdout]   --> src/lib.rs:43:5
[INFO] [stdout]    |
[INFO] [stdout] 43 | use nix::sys::stat::fstat;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `filetype`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: aborting due to 14 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "4368dfcdf102e868e5d03feebcd177cfbf0b55ef3c96d5cb926f332e9d88efef", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4368dfcdf102e868e5d03feebcd177cfbf0b55ef3c96d5cb926f332e9d88efef", kill_on_drop: false }`
[INFO] [stdout] 4368dfcdf102e868e5d03feebcd177cfbf0b55ef3c96d5cb926f332e9d88efef
